package com.huangpuweb.task.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class LxmReXianRowMapper implements RowMapper<LxmReXian> {
    @Override
    public LxmReXian mapRow(ResultSet resultSet, int i) throws SQLException {
        LxmReXian lr=new LxmReXian();
//        lr.setId(resultSet.getInt("id"));
        lr.setID(resultSet.getInt("ID"));
        lr.setAJZT(resultSet.getString("AJZT"));
        lr.setRWH(resultSet.getString("RWH"));
        lr.setFXSJ(resultSet.getString("FXSJ"));
        lr.setWTLX(resultSet.getString("WTLX"));
        lr.setStreet(resultSet.getString("Street"));
        lr.setJuWei(resultSet.getString("JuWei"));
        lr.setFSDZ(resultSet.getString("FSDZ"));
        lr.setSQLXR(resultSet.getString("SQLXR"));
        lr.setLXFS(resultSet.getString("LXFS"));
        lr.setWTMS(resultSet.getString("WTMS"));
        lr.setZZBM(resultSet.getString("ZZBM"));
        lr.setSJZZBM(resultSet.getString("SJZZBM"));
        lr.setJASJ(resultSet.getString("JASJ"));
        lr.setFKJL(resultSet.getString("FKJL"));
        lr.setMYQK(resultSet.getString("MYQK"));
        lr.setCQQK(resultSet.getString("CQQK"));
        lr.setDBQK(resultSet.getString("DBQK"));
        lr.setObjectEntryState(resultSet.getInt("ObjectEntryState"));
        lr.setNotMappedProperties(resultSet.getString("NotMappedProperties"));
        return lr;
    }
}
